package com.service.calculate;

import com.service.bean.Road_Data_Paver_1_x;
import com.service.bean.Road_GpsSignal;
import com.service.bean.Road_GpsSignal_Paver;
import com.service.bean.Road_Data;

/**
 * 摊铺机基础值计算
 * @author sxc
 *
 */
public class Road_BasalCalculator_Paver extends Road_BasalCalculator{
	
	/**
	 * 基础值计算
	 * @param data
	 * @param signal
	 */
	public void calculate(Road_Data data,Road_GpsSignal signal){
		super.calculate(data,signal);
		Road_GpsSignal_Paver signal_Paver = (Road_GpsSignal_Paver)signal;
		Road_Data_Paver_1_x data_Paver = (Road_Data_Paver_1_x)data;
		
		signal.speed = Double.parseDouble(Integer.parseInt(data.speedDec+data.speedInt,16)+"")/100; //米/分钟
		signal_Paver.ironPlateTemp = Integer.parseInt(data_Paver.ironPlateTemp,16);
		signal_Paver.paverTemp = Integer.parseInt(data_Paver.paverTemp,16);
		signal_Paver.thickness = Integer.parseInt(data_Paver.thickness,16)/ 10.00;
		signal_Paver.evenness = Integer.parseInt(data_Paver.evenness,16);
		signal_Paver.ramSpeed = Integer.parseInt(data_Paver.ramSpeed,16);
		signal_Paver.vibrationSpeed = Integer.parseInt(data_Paver.vibrationSpeed,16);
		signal_Paver.rawSwitch = Integer.parseInt(data_Paver.rawSwitch,16);	
		signal_Paver.rfid = data_Paver.rfid;
		signal.oilAmt = Integer.parseInt(data.oilDec+data.oilInt, 16) / 100.00;
	}
	
}
